package com.rbac.api.controller.request;

import javax.validation.constraints.Max;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;

///管理员状态修改
public class PostUserSaveStatusRequest {


    ///数据id
    @NotNull(message = "post.common.id.not.null")
    private Integer id;

    ///用户状态：1无效、2有效
    @NotNull(message = "post.common.user.status.not.null")
    @Min(value = 1,message = "post.common.user.status.min.fail")
    @Max(value = 2,message = "post.common.user.status.max.fail")
    private Integer userStatus;


    ///当前用户状态：1无效、2有效
    @NotNull(message = "post.common.now.user.status.not.null")
    @Min(value = 1,message = "post.common.now.user.status.min.fail")
    @Max(value = 2,message = "post.common.now.user.status.max.fail")
    private Integer nowStatus;


    public Integer getNowStatus() {
        return nowStatus;
    }

    public void setNowStatus(Integer nowStatus) {
        this.nowStatus = nowStatus;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getUserStatus() {
        return userStatus;
    }

    public void setUserStatus(Integer userStatus) {
        this.userStatus = userStatus;
    }

    @Override
    public String toString() {
        return "PostUserSaveStatusRequest{" +
                "id=" + id +
                ", userStatus=" + userStatus +
                ", nowStatus=" + nowStatus +
                '}';
    }
}
